<?php

class M_update Extends CI_Model
{
	private $admin = 'administrative_employees';
	private $teach = 'teaching_personnel';


	public function update_admin($data,$id)
	{
		$this->load->database();
		$this->db->where('ae_id',$id)->update($this->admin,$data);
		return $this->db->affected_rows() > 0 ? TRUE : FALSE;
	}

	public function update_teach($data,$id)
	{
		$this->load->database();
		$this->db->where('tp_id',$id)->update($this->teach,$data);
		return $this->db->affected_rows() > 0 ? TRUE : FALSE;
	}
}